<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="java.util.List" %><%@ page import="com.pignest.hotel.beans.global.Menu" %><%@ page import="com.pignest.hotel.system.Global" %><%@ page import="com.pignest.framework.util.Utils" %><%
String contextPath = request.getContextPath();
List<Menu> menus = Global.getAdminMenus();
request.setAttribute("menus", menus);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>系统管理</title>
<script type="text/javascript" src="<%=contextPath%>/scripts/jquery-1.4.2.js"></script>
<script type="text/javascript" src="<%=contextPath%>/scripts/jquery.kwicks-1.5.1.js"></script>
<style>
body{
	padding:2px;
	margin:0px;
}
a {
	text-decoration:none;
}
.title {
	list-style: none;
	position: relative;
	margin: 0;
	padding: 0;
	color:red;
	font-family:"微软雅黑";
	overflow:visible;
}
.title li{
	height: 30px;
	width:80px;
	display: block;
	padding: 0 10px;
	text-align:center;
	cursor:hand;
	color:#000;
	float:left;
	font-weight:bold;
}
.title li a:hover {
	color:blue;
	font-size:110%;
}
.nav3 {
	background:url("../../images/a_title_bg.gif") repeat-x scroll left -189px transparent;
	height:35px;
	line-height:33px;
	overflow:hidden;
}
.main_bg {
	background:url("../../images/a_body_bg.gif") repeat-x scroll center top transparent;
}
</style>
</head>
<body>
<div class="nav3">
	<div style="margin:0px auto;width:960px;">
	<ul class="title" >
	<c:forEach var="menu" items="${menus}">
	    <li><a href="${menu.path}" target="atarget">${menu.name}</a></li>
	</c:forEach>
	</ul>
	</div>
</div>
<div class="main_bg">
	<iframe src="log.jsp" id="atarget" name="atarget" frameborder="0" width="100%" height="100%"></iframe>
</div>

<script type="text/javascript">
$(function() {
    $('.kwicks').kwicks({
        max : 175,
		sticky: true,
		defaultKwick: 0,
		event: 'click',
        spacing : 5.3
    }).show();
	var h = $(document).height() - 50;
	$("iframe").height(h);
	$(".kwicks>li").click(function(){
		var src = $(this).attr("src");
		if (src){
			$("li.selected").removeClass("selected");
			$(this).addClass("selected");
			$("iframe").attr("src", src);
		}
	});
	$(".kwicks>li").get(0).click();
	window.onresize = function() {
		var h = $(document).height() - 50;
		$("iframe").height(h);
	};
});  </script>
</body>
</html>